<{extends file="$tpl_dir/tpl_base.htm"}>
<{block name="main"}>
<div class="main-head">
  <div class="main-head_title">
    <h2>管理员</h2>
  </div>
</div>
<div class="main-body">
  <div class="main-action">
  	<a href="<{$url.base}>/create" class="mod-btn mod-btn_primary">新增</a>
	<a href="javascript:;" data-action="delete" class="mod-btn j-action">删除</a>
  </div>
  <div class="mod-box">
    <table class="mod-table">
      <thead>
        <tr>
          <th class="col-chkbox"><label class="mod-chkbox">
            <input type="checkbox" data-action="chkall">
            </label></th>
          <th>ID</th>
          <th>用户名</th>
		  <th>用户组</th>
          <th>创建时间</th>
          <th class="col-operate">操作</th>
        </tr>
      </thead>
      <tbody>
      <{foreach $list as $row}>
      <tr>
        <td class="col-chkbox"><label class="mod-chkbox">
          <input type="checkbox" name="chkid[]" value="<{$row.id}>">
          </label></td>
        <td><{$row.id}></td>
        <td><{$row.username}></td>
		<td><{$options.group[$row.groupid]}></td>
        <td><{$row.createtime|date_format:"%Y-%m-%d %H:%M:%S"}></td>
        <td class="col-operate"><a href="<{$url.base}>/edit?id=<{$row.id}>">编辑</a></td>
      </tr>
      <{/foreach}>
      </tbody>
    </table>
	<{if !$list}>
    <div class="mod-nothing">暂无信息</div>
    <{/if}>
  </div>
  <{if $list}>
  <div class="pagination"><{$show_page}></div>
  <{/if}> </div>
<{/block}>